home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / graphics.17 / graphics / graphics-0.17 / tek2plot / space.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-03-12  |  1.2 KB  |  36 lines

  1. /* Copyright (C) 1989 Free Software Foundation, Inc.
  2.  
  3.    plot is distributed in the hope that it will be useful, but WITHOUT
  4.    ANY WARRANTY.  No author or distributor accepts responsibility to
  5.    anyone for the consequences of using it or for whether it serves any
  6.    particular purpose or works at all, unless he says so in writing.
  7.    Refer to the GNU General Public License for full details.
  8.  
  9.    Everyone is granted permission to copy, modify and redistribute
  10.    plot, but only under the conditions described in the GNU General
  11.    Public License.  A copy of this license is supposed to have been
  12.    given to you along with libtek so you can know your rights and
  13.    responsibilities.  It should be in a file named COPYING.  Among
  14.    other things, the copyright notice and this notice must be preserved
  15.    on all copies.  */
  16.  
  17. /* This file is the space routine, which is a standard part of the plot
  18.    library.  It sets the lower left and upper right corners of the page.  The
  19.    plot will be scaled so that these coners fit the largest renderable area on
  20.    the page.  */
  21.  
  22. #include "sys-defines.h"
  23. #include "libplot.h"
  24.  
  25. int
  26. space (x0, y0, x1, y1)
  27.      int x0, y0, x1, y1;
  28. {
  29.   putchar ('s');
  30.   putshort (x0);
  31.   putshort (y0);
  32.   putshort (x1);
  33.   putshort (y1);
  34.   return 0;
  35. }
  36.